package cn.jy.boot.service.impl;

import cn.jy.boot.mapper.UserMapper;
import cn.jy.boot.pojo.User;
import cn.jy.boot.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(Long id) {
        return userMapper.getUserById(id);
    }
}
